//
//  CategoryCell.m
//  Feel_at_home
//
//  Created by dlios on 15/9/29.
//  Copyright © 2015年 Feel_at_home. All rights reserved.
//

#import "CategoryCell.h"

@implementation CategoryCell

// 初始化
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.col = [[CollectionViewTwo alloc]initWithFrame:CGRectMake(0, 40, [UIScreen mainScreen].bounds.size.width, 170)];
        [self addSubview:self.col];
        self.title = [[UILabel alloc]init];
        [self addSubview:self.title];
    }
    return self;
}



- (void)layoutSubviews
{
    [super layoutSubviews];
    self.title.frame = CGRectMake(20, 10, 100, 30);
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
